//package cn.tedu.mintmall.controller;
//
//import cn.tedu.mintmall.dto.UserLoginDTO;
//import cn.tedu.mintmall.restful.JsonResult;
//import cn.tedu.mintmall.service.IUserLongService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@RestController
//@RequestMapping("/login")
//@Api(tags = "用户登录注册")
//public class UserLoginController {
//    @Autowired
//    private IUserLongService userLongService;
//    @PostMapping("/insert")
//    @ApiOperation("用户注册")
//    public JsonResult insertUser(UserLoginDTO userLoginDTO){
//        userLongService.addUser(userLoginDTO);
//        return JsonResult.ok("注册完成");
//    }
//    @PostMapping("/#{username}")
//    @ApiOperation("用户登录")
//    public JsonResult loginUser(String username,String password){
//        userLongService.userLogin(username,password);
//        return JsonResult.ok();
//    }
//}
